package com.wisnews.service.sec.Impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wisnews.mapper.sec.ShiroRequestControllerMapper;
import com.wisnews.pojo.sec.entity.ShiroRequestController;
import com.wisnews.service.sec.IShiroRequestControllerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 请求控制列表 服务实现类
 * </p>
 *
 * @author yuyd
 * @since 2020-12-22
 */
@Service

public class ShiroRequestControllerServiceImpl extends ServiceImpl<ShiroRequestControllerMapper, ShiroRequestController> implements IShiroRequestControllerService {

    @Autowired
    private ShiroRequestControllerMapper shiroRequestControllerMapper;

    @Override
    public IPage<ShiroRequestController> queryForPage(ShiroRequestController req, IPage page) {
        LambdaQueryWrapper<ShiroRequestController> lambdaQueryWrapper = Wrappers.lambdaQuery();
        return shiroRequestControllerMapper.getRequestForPage(lambdaQueryWrapper,page);
    }
}
